package com.gxa.insurance.mapper;

import com.gxa.insurance.pojo.InsureApply;
import com.gxa.insurance.pojo.ThirdAdmin;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author 10076
 */
public interface ThirdAdminMapper {
    List<ThirdAdmin> selectAll();
    List<ThirdAdmin> selectAllByname();
    ThirdAdmin selectById(Integer id);
    Integer insert(ThirdAdmin thirdAdmin);
    Integer insertApply(InsureApply insureApply);
    List<InsureApply> selectAllApply();
    void delete(Integer id);
    void update(ThirdAdmin thirdAdmin);
    List<ThirdAdmin>selectLikeName (@Param("name") String name , @Param("phone") String  phone, @Param("page") Integer page, @Param("limit") Integer limit);
    List<Map<String,Object>> selectByPage(Integer page, Integer size);
}
